package com.example.blog.ws.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.blog.pojo.Result;
import com.example.blog.pojo.User;
import com.example.blog.ws.pojo.ChatMessageGroup;
import com.example.blog.ws.pojo.ChatMessageSingle;
import org.apache.poi.ss.formula.functions.T;

import java.util.List;

public interface ChatMassageService extends IService<ChatMessageSingle> {
    void saveGroupMessage(String fromUserId,String name,String headerUrl,String message, String messageType);

    void saveSingleMessage(String fromUserId,String receiveUserId,String name,String headerUrl,String message, String messageType);

    Result<List<ChatMessageGroup>> getGroupMessage();

    Result<List<ChatMessageSingle>> getSingleMessage(String fromUserId,String receiveUserId);

    void saveOnlineCount(String count);

    Result<User> getUserByName(String name);

    Result<T> getOnlineCount();
}
